package com.zsrt.java.day20161226.hzj.lasthomework;

import java.util.Scanner;

public class Creadit1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个有效的成绩");
		String source = sc.next();
		sc.close();
		hw05(source);
	}
    public static void hw05(String source){	
		switch(source){
		
		case "A": System.out.println("优秀");break;
		case "B": System.out.println("良好");break;
		case "C": System.out.println("及格");break;
		default: System.out.println("不及格");break;
		}
		
	}
}
